//index.js
//获取应用实例
var count=0
var count2=0
Page({
  data: {
    motto: 'Hello World',
    userInfo: {},
    hasUserInfo: false,
    canIUse: wx.canIUse('button.open-type.getUserInfo'),
    money:"",
    inputValuet:'',
    result:"最终结果将在这里显示"
  },
  inputvalue : function(e)  {
     count= e.detail.value
  },
  inputvalue2 : function(e)  {
    count2= e.detail.value
 },
dollar : function()  {
  var money=Math.round(count/6.5323*100)/100+"美元"
  this.setData(
    {result:money,}
    )

},
euro : function()  {
  var money=Math.round(count/7.9973*100)/100+"欧元"
  this.setData(
    {result:money,}
    )

},
pound : function()  {
  var money=Math.round(count/8.8257*100)/100+"英镑"
  this.setData(
    {result:money,}
    )

},
yen : function()  {
  var money=Math.round(count/0.0631*100)/100+"日元"
  this.setData(
    {result:money,}
    )

},
aud : function()  {
  var money=Math.round(count/5.0474*100)/100+"澳元"
  this.setData(
    {result:money,}
    )

},
hkd : function()  {
  var money=Math.round(count/0.8858*100)/100+"港元"
  this.setData(
    {result:money,}
    )

},
krw : function()  {
  var money=Math.round(count/0.0058*100)/100+"韩元"
  this.setData(
    {result:money,}
    )

},
zdy : function()  {
  var money=Math.round(count/count2*100)/100
  this.setData(
    {result:money,}
    )

}
}
)